﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using Common.Logging;
using Spring.Context;
using Spring.Context.Support;
using bus.console.service.bus;
using com.pro2e.console.core.service;
using bus.console.service.bus.vo;

/// <summary>
/// BasePage 的摘要描述
/// </summary>
public class BasePage : System.Web.UI.Page
{
    public ILog log = LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType);
    public IBusService busService;
    public MyService myService;
    public IApplicationContext ctx;

    public BasePage()
    {
         initContext();
    }
 
    public void initContext() 
    {
        ctx = ContextRegistry.GetContext();
        busService = (IBusService)ctx.GetObject("BusService");
        myService=(MyService)ctx.GetObject("MyService");

    }


    
}
